﻿

    <h4 style="font-size:14px">

        <li>@Html.ActionLink("Home", "Index", "Home")</li>
        &nbsp;
        &nbsp;
         <li>
             @if (ViewBag.logged == "false")
             {
                 @Html.ActionLink("Log in/Sign Up", "Index", "User")
             }
             else
             {
                 
                 if (ViewBag.userType == "N")
                 {
                    @Html.ActionLink("My Account (Log out)", "Index", "Customer")
                 }
                else // admin
                {
                    @Html.ActionLink("My Account (Log out)", "Index", "Admin")
                }
            }
         </li>
        &nbsp;
        &nbsp;

        @* only show when is customer/not logged in. Dont show to admin *@
        @if (ViewBag.logged == "false")
        {
         <li>@Html.ActionLink("Cart", "Index", "Transaction")</li>
        }
        else
        {
            if(ViewBag.userType == "N")
            {
                <li>@Html.ActionLink("Cart", "Index", "Transaction")</li>
            }
            else
            {
                <li>@Html.ActionLink("Statistics", "Statistics", "Products")</li>
            }
        }
        &nbsp;
        &nbsp;
         @if (ViewBag.logged == "false")
        {
            <li>@Html.ActionLink("Wishlist", "Index", "WishList")</li>
        }
        else
        {
            if(ViewBag.userType == "N")
            {
                <li>@Html.ActionLink("Wishlist", "Index", "WishList")</li>
            }
            else
            {
                <li>@Html.ActionLink("Create", "Create", "Products")</li>
            }
        }
      
    </h4>
        
